package com.feiyi.app.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.feiyi.app.R;
import com.feiyi.app.bean.JifenBean;

import java.util.List;

/**
 * @author wangliantao
 * @time 2018 11 2018/11/18 5:01 PM
 * @email 1346947404@qq.com
 * @package com.feiyi.app.adapter
 * @describe： In me the tiger sniffs the rose
 */
public class JifenAdapter extends BaseQuickAdapter<JifenBean.DataBean,BaseViewHolder> {
    public JifenAdapter(int layoutResId, @Nullable List<JifenBean.DataBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, JifenBean.DataBean item) {
        helper.setText(R.id.tv_jifen_desc,item.getChange_desc())
                .setText(R.id.tv_jifen_point,"+"+item.getPay_points())
                .setText(R.id.tv_jifen_time,item.getChange_time());
    }
}
